package com.kgc.scd.service;

import com.kgc.scd.vo.ShopHistoryWordsVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("wyyxmall-hx-server")
public interface HistoryFeignService {
    /**
     * 添加历史记录到数据库
     * @return
     */
    @PostMapping("/history")
    int intsert(@RequestBody ShopHistoryWordsVO historyWordsvo);

    /**
     * 查询历史记录列表
     */
    @GetMapping("/historylist")
    List<ShopHistoryWordsVO> getHistoryWords();

    /**
     * 根据多个关键字删除搜索记录
     */

    @GetMapping("/hiDelete")
    boolean delete(@RequestParam("words") List<String> words);
}
